package com.hgh.javase5_1;

import java.util.Date;

public class Employee {

	private Date hireDate;
	private int id;
	private Double salary;
	public Employee(Date hireDate, int id, Double salary) {
		super();
		this.hireDate = hireDate;
		this.id = id;
		this.salary = salary;
	}
	public Double getSalary() {
		return salary;
	}
	public void setSalary(Double salary) {
		this.salary = salary;
	}
	public Date getHireDate() {
		return (Date) hireDate.clone();
	}
	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Employee(Date hireDate, int id) {
		super();
		this.hireDate = hireDate;
		this.id = id;
	}
	@Override
	public String toString() {
		return "Employee [hireDate=" + hireDate + ", id=" + id + ", salary=" + salary + "]";
	}

	
	
	
}
